package com.tywj.panda.travel.provider

import android.app.Activity
import com.tywj.lib.core.common.view.BaseFragment
import com.tywj.lib.route.Route
import com.tywj.lib.route.RouteNavigation
import com.tywj.panda.customer.common.entity.TravelEntity
import com.tywj.panda.customer.common.provider.ITravelService
import com.tywj.panda.travel.route.TravelRoute


/**
 * @desc 首页组件导航
 * @author June Yang
 * @date 2020/5/8
 */

@Route(path = TravelRoute.TRAVEL_SERVICE)
class TravelServiceImpl : ITravelService {

    override fun getTravelFragment(activity: Activity): BaseFragment {
        return TravelRoute.getTravelFragment(activity)
    }

    override fun toTravelDetails(bean: TravelEntity.DataBean): RouteNavigation {
        return TravelRoute.toTravelDetails(bean)
    }
}